package com.powernode.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.powernode.mapper.SysFolderMapper;
import com.powernode.domain.SysFolder;
import com.powernode.service.SysFolderService;

import java.util.List;

/**
*描述：
*作者：动力节点·武汉
*/
@Service
public class SysFolderServiceImpl implements SysFolderService{

    @Resource
    private SysFolderMapper sysFolderMapper;

    @Override
    public int deleteByPrimaryKey(Integer folderId) {
        return sysFolderMapper.deleteByPrimaryKey(folderId);
    }

    @Override
    public int insert(SysFolder record) {
        return sysFolderMapper.insert(record);
    }

    @Override
    public int insertSelective(SysFolder record) {
        return sysFolderMapper.insertSelective(record);
    }

    @Override
    public SysFolder selectByPrimaryKey(Integer folderId) {
        return sysFolderMapper.selectByPrimaryKey(folderId);
    }

    @Override
    public int updateByPrimaryKeySelective(SysFolder record) {
        return sysFolderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysFolder record) {
        return sysFolderMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SysFolder> queryFolderList(String folderName, Integer userId) {
        return this.sysFolderMapper.queryFolderList(folderName,userId);
    }

}
